package com.angel.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 关联yml文件，然后读取文件
 */
@Component
@PropertySource("classpath:myconfig.yml")
@ConfigurationProperties()
public class MyConfig {

    private String name;
    private String pass;
    private String fileuploadpath;
    private String vitrPath;
    private String ak;
    private String appcode;
    private String ptl_id;

    public String getPtl_id() {
        return ptl_id;
    }

    public void setPtl_id(String ptl_id) {
        this.ptl_id = ptl_id;
    }

    public String getAppcode() {
        return appcode;
    }

    public void setAppcode(String appcode) {
        this.appcode = appcode;
    }

    public String getAk() {
        return ak;
    }

    public void setAk(String ak) {
        this.ak = ak;
    }

    public String getVitrPath() {
        return vitrPath;
    }

    public void setVitrPath(String vitrPath) {
        this.vitrPath = vitrPath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getFileuploadpath() {
        return fileuploadpath;
    }

    public void setFileuploadpath(String fileuploadpath) {
        this.fileuploadpath = fileuploadpath;
    }
}
